package com.dbManage.dao;


import com.dbManage.annotation.MyBatisRepository;
import com.dbManage.entity.Note;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@MyBatisRepository
public interface EssayDao {

    List<Note> findAllEssay();

    void insertEssay(Note note);

    void deleteEssayById(int id);

    void updateEssayById(Note note);

    Note findEssayById(int id);

    List<Note> queryEssay(Note note);

    List<Note> search(Note note);
}
